<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "award".
 *
 * @property string $id
 * @property integer $gross_num
 * @property integer $residue_num
 * @property string $name
 * @property string $probability
 * @property string $intro
 * @property string $state
 * @property integer $create_time
 */
class Award extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'award';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'gross_num', 'residue_num', 'name', 'probability', 'state'], 'required'],
            [['gross_num', 'residue_num', 'create_time'], 'integer'],
            [['probability'], 'number'],
            [['id'], 'string', 'max' => 36],
            [['name'], 'string', 'max' => 20],
            [['intro', 'state'], 'string', 'max' => 10],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'gross_num' => 'Gross Num',
            'residue_num' => 'Residue Num',
            'name' => 'Name',
            'probability' => 'Probability',
            'intro' => 'Intro',
            'state' => 'State',
            'create_time' => 'Create Time',
        ];
    }
}
